<template>
  <div class="report">
     <v-chart :options="data"></v-chart>
  </div>

</template>

<script>
import { reportList } from '@/api/report-index.js'
import ECharts from 'vue-echarts'
import 'echarts/lib/chart/line'
import 'echarts/lib/component/polar'
export default {
  // 注册
  components: {
    'v-chart': ECharts
  },
  data () {
    return {
      data: {}
    }
  },
  mounted () {
    reportList()
      .then((res) => {
        // console.log(res)
        this.data = res.data.data
        // console.log(this.data)
      })
  }
}
</script>

<style lang="less">

</style>
